package ua.sumy;

public class CalcSpring {
	
	private Operation op;

	public CalcSpring() {
	}
	
	public void setOp(Operation op) {
		this.op = op;
	}
	
	public Operation getOp() {
		return op;
	}
	
	public void exec(long a, long b) {
		System.out.println(a + op.getOpName() + b + " = " + op.operate(a, b));
	}
	
}
